home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 41 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: gate.net!pslfl2-15
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Screen Scrolling Prob
  5. Date: 2 Jan 1996 03:24:54 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4ca8i6$ghk@news.gate.net>
  8. References: <DKEz2q.Hs2.0.sheppard@torfree.net>
  9. NNTP-Posting-Host: pslfl2-15.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <DKEz2q.Hs2.0.sheppard@torfree.net>,
  13.    bm882@torfree.net (Daniel M. Sher) wrote:
  14. >Hi.... I have a problem with the way IBM computers work... You know that 
  15. >when you put a character on line 25- at the end of the line, the computer 
  16. >automaticly scrolls the screen up one line? Well, I have this program 
  17. >that streches the screen to 43 lines, but when it gets to the end of line 
  18. >25, it moves the whole screen up one line. It is driving me crazy. Also, 
  19. >I noticed that it only happens when I use the cprintf statement.... I'm a 
  20. >beginner, so could you please help me with this. 
  21. >
  22. >Thanx.
  23. >
  24. >Daniel
  25. >bm882@freenet.toronto.on.ca
  26. >
  27. >
  28. >
  29. The problem is that cprintf() thinks you are in 25-row mode. It may be 
  30. hard-coded for that (tsk tsk!). It depends on how you achieve your 43-row 
  31. mode. If you don't use an extension provided by your compiler to switch to 
  32. 43-row mode it's not going to be able to set internal variables that would 
  33. indicate this, assuming it has such variables. In such case, any functions 
  34. relying on these variables would make incorrect assumptions. If you can't 
  35. resolve it through your compiler's extended library, you'll either have to 
  36. drop down to a lower level and write the function yourself or try another 
  37. function.
  38.  
  39. Bill
  40.  
  41.